{layout name="layout/sharewifi" /}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf">分红记录</div>
                </div>
                <div class="widget-body am-fr">
                    <div class="am-scrollable-horizontal am-u-sm-12">
                        <table width="100%" class="am-table am-table-hover tpl-table-black">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>头像</th>
                                <th>姓名</th>
                                <th>性别</th>
                                <th>电话</th>
                                <th>地址</th>
                                <th>金额</th>
								<th>状态</th>
								<th>备注</th>
								<th>时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            {if !$list->isEmpty()}
                                {foreach $list as $item}
                                <tr>
                                    <td class="am-text-middle">{$item['wallet_id']}</td>
                                    <td class="am-text-middle">
                                        <img src="{$item['user']['avatar']}" width="72" height="72" alt="">
                                    </td>
                                    <td class="am-text-middle">{$item['user']['linkman']|default='--'}</td>
                                    <td class="am-text-middle">
                                        <span class="am-badge am-radius 
                                            {$item['user']['gender'] ==  '先生'? ' am-badge-primary' : ''} 
                                            {$item['user']['gender'] ==  '女士'? ' am-badge-danger' : ''}">
                                            {$item['user']['gender']}
                                        </span>
                                    </td>
                                    <td class="am-text-middle">{$item['user']['phone']|default='--'}</td>
                                    <td class="am-text-middle">
                                        {$item['user']['city']}
                                        {$item['user']['district']}
                                        {$item['user']['address']}
                                    </td>
                                    <td class="am-text-middle">{$item['money']}</td>
                                    <td class="am-text-middle">
                                        <span class="am-badge am-radius 
                                            {$item['status']['value'] == 30 ? ' am-badge-warning' : ''} 
                                            {$item['status']['value'] == 20 ? ' am-badge-danger' : ''} 
                                            {$item['status']['value'] == 40 ? ' am-badge-success' : ''}">
                                            {$item['status']['text']}
                                        </span>
                                    </td>
                                    <td class="am-text-middle">{$item['reason']|default='--'}</td>
									<td class="am-text-middle">{$item['create_time']}</td>
                                </tr>
                                {/foreach}
                            {else /}
                                <tr>
                                    <td colspan="10" class="am-text-center">暂无记录</td>
                                </tr>
                            {/if}
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">
                        <div class="am-fr">{:$list->render()} </div>
                        <div class="am-fr pagination-total am-margin-right">
                            <div class="am-vertical-align-middle">总记录：{:$list->total()}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
